home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
modelers
/
geomview
/
source.lha
/
Geomview
/
makefiles
/
Makerules.allsrc
< prev
next >
Wrap
Text File
|
1993-11-16
|
3KB
|
98 lines
depend:
@if [ -d O.${MACHTYPE} ] ; then \
CC=${CC} ${MKDEP} -f O.${MACHTYPE}/${MKDEPFILE} \
${MKDEPFLAGS} -P ../ ${CFLAGS} ${SRCS} ${COMMON_SRCS} ; \
fi
@${DO_DIRS_THIS_MACH_NO_OBJ}
installh:
@(incs="${INCS}" ; i=; \
for h in $$incs ; do \
cmp -s $$h ${GEOM}/include/$$h || i="$$i $$h" ; \
done; \
test -n "$$i" && ${INSTALL} -O -v -m 664 -F ${GEOM}/include $$i || :)
@${DO_DIRS_NO_OBJ}
rm_libs rm_depend:
@${DO_DIRS}
OTHER_DISTFILES_CMD = \
( hfiles=`/bin/ls | grep '.*\.h$$' || : ` ; \
files=`echo ${SRCS} ${MANS} ${DOCS} ${MMAPKGS} ${SCRIPTS} $$hfiles` ; \
if [ "$$files" != "" ] ; then echo $$files ; fi )
COPYRIGHT=${GEOM}/doc/misc/copyright
copyright:
@( files=`/bin/ls | grep '.*\.[ch]$$' || : ` ; \
for file in $$files ; do \
if grep -s 'Copyright (c) 1992 The Geometry Center' $$file ; then \
echo $$file is already copyrighted ; \
else \
if co -l -f $$file ; then \
cat ${COPYRIGHT} $$file > $$file.new ; \
mv $$file $$file.old ; \
mv $$file.new $$file ; \
ci -u -f -m"added copyright notice" $$file ; \
else \
echo ERROR could not co $$file ; \
fi ; \
fi ; \
done )
@${DO_DIRS_NO_OBJ}
# this target can be customized to to various editing on src files:
CREL = ${GEOM}/tools/cr.el
srcedit:
@( files=`/bin/ls | grep '.*\.[ch]$$' || : ` ; \
for file in $$files ; do \
if grep -s '^/\* Authors: ' $$file ; then \
if co -l -f $$file ; then \
emacs -batch $$file -l ${CREL} ; \
ci -u -f -m"moved copyrights around a bit" $$file ; \
else \
echo ERROR could not co $$file ; \
fi ; \
fi ; \
done )
@${DO_DIRS_NO_OBJ}
# Copy ${MANDIR} to a shell variable in case it includes trailing blanks.
formatman:
@mans="${MANS}"; mandir=${MANDIR}; \
if type nroff 2>&1 | grep 'nroff is ' >&-; then \
for f in $$mans ; do \
cdir=$$mandir/cat`expr "$$f" : ".*\(.\)"` ; \
${GEOM}/tools/insuredir $$cdir; \
rm -f $$cdir/$$f ; \
echo "nroff -man $$f | col -b > $$cdir/$$f" ; \
nroff -man $$f | col -b > $$cdir/$$f; \
rm -f ${GEOM}/doc/$$f ; \
/bin/cp $$cdir/$$f ${GEOM}/doc; \
done; \
fi
installman:
@mans="${MANS}"; mandir=${MANDIR}; \
for f in $$mans ; do \
mdir=$$mandir/man`expr "$$f" : ".*\(.\)"` ; \
${INSTALL} -O -v -m 664 -F $$mdir $$f || : ; \
done;
installmma: ${MMAPKGS}
@if [ "${MMAPKGS}" ] ; then \
${INSTALL} -m 664 -O -v -F ${MMAPACKAGEDIR} ${MMAPKGS} \
; fi
installdoc: ${DOCS}
@if [ "${DOCS}" ] ; then \
${INSTALL} -m 664 -O -v -F ${GEOM}/doc ${DOCS} \
; fi
include ${GEOM}/makefiles/Makerules.clean
include ${GEOM}/makefiles/Makerules.common